import { get } from '../contstants/fetch-request'


export const getUser = () => {
  return (dispatch: Function) => {
    (async () => {
      const data = await get('/api/users/21')
      dispatch({
        type: 'GET_USER',
        data
      })
    })()
  }
}



